trigger Emailoncasesave on Case(after insert,after update) 
{
    PersonalAccountHomeLoanDetail personalaccounthomeloan = new PersonalAccountHomeLoanDetail();
    personalaccounthomeloan.sendEmail(trigger.new); 

}